package com.ynunicom.dc.dingdingcontractapp.service;

import com.alibaba.fastjson.JSONObject;
import com.ynunicom.dc.dingdingcontractapp.entity.requestbodyentity.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * @author: jinye.Bai
 * @date: 2020/6/2 14:00
 */
public interface FlowableService {

    public JSONObject getAllAssignedTasks(TransBody<FlowableTaskCheckRequestBody> transBody);

    public JSONObject processStart(ProcessStartRequestBody processStartRequestBody, MultipartFile file, String access_token);

    public void getFile(HttpServletResponse httpServletResponse,String fileName);

    public JSONObject deptJudgeAndComment(TransBody<DeptJudgeAndComment> transBody);

    public JSONObject managerJudgeAndComment(TransBody<ManagerJudgeAndCommentRequestBody> transBody);

    public JSONObject financialJudgeAndComment(TransBody<FinancialJudgeAndCommentRequestBody> transBody);

    public JSONObject legalJudgeAndComment(TransBody<LegalJudgeAndCommentRequestBody> transBody);

    public JSONObject leaderJudgeAndComment(TransBody<LeaderJudgeAndCommentRequestBody> transBody);

    public JSONObject contractSaverJudgeAndComment(TransBody<SaverJudgeAndComment> transBody);

    public JSONObject recorrect(RecorrectRequestBody recorrectRequestBody,MultipartFile file,String access_token);

    public JSONObject runningContract(TransBody<String> transBody);

    public JSONObject alterRunningContract(TransBody<AlterRequestBody> transBody);

}
